﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="myBoard.App.UserCard"
	x:Name="UserControl" FontFamily="Calibri" FontSize="16" Foreground="Black">

	<Border Width="220" BorderBrush="Black" BorderThickness="1">

		<Grid x:Name="LayoutRoot">
			<Grid.RowDefinitions>
				<RowDefinition Height="25"/>
				<RowDefinition Height="*"/>
			</Grid.RowDefinitions>
			<Border Margin="0">
				<Border.Background>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FFDAF484" Offset="0"/>
						<GradientStop Color="#FFB4E804" Offset="1"/>
					</LinearGradientBrush>
				</Border.Background>
				<TextBlock Text="{Binding Nickname, Mode=Default}" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0"/>
			</Border>
			<Border Grid.Row="1">
				<Border.Background>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FFB7B7B7" Offset="0"/>
						<GradientStop Color="White" Offset="1"/>
						<GradientStop Color="White" Offset="0.142"/>
					</LinearGradientBrush>
				</Border.Background>
				<Grid>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="0.332*"/>
						<ColumnDefinition Width="0.668*"/>
					</Grid.ColumnDefinitions>
					<Border Margin="5,10,8.02,0" BorderThickness="1" Height="60" VerticalAlignment="Top" BorderBrush="#FFAFAFAF" Background="White">
						<Image Source="{Binding AvatarUrl, Mode=Default}"/>
					</Border>
					<Grid Margin="0,11,0,0" Height="90" Grid.Column="1">
						<Grid.RowDefinitions>
							<RowDefinition Height="0.7*"/>
							<RowDefinition Height="0.3*"/>
						</Grid.RowDefinitions>
						<Grid Margin="0,0,5,0">
							<TextBlock Margin="5,0" FontSize="13.333" Text="{Binding Comments, Mode=Default}" TextWrapping="Wrap" d:LayoutOverrides="Height" FontStyle="Italic" Foreground="#FF8E8E8E"/>
						</Grid>
						<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" VerticalAlignment="Bottom" Grid.Row="1" Margin="0,0,5,0">
							<Button Cursor="Hand" HorizontalAlignment="Left" Style="{DynamicResource TransparentButtonStyle}" ToolTip="Twitter" VerticalAlignment="Top" Width="30" Height="30">
								<Image Source="..\..\Images\twitter.png"/>
							</Button>
						</StackPanel>
					</Grid>
				</Grid>
			</Border>
		</Grid>
	</Border>
</UserControl>